//
//  NatureModelCell.m
//  CarHome
//
//  Created by 蒋寒霄 on 14-9-25.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "NatureModelCell.h"

@implementation NatureModelCell

- (void)dealloc
{
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self createView];
    }
    return self;
}

- (void)createView
{
    _title = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 300, 20)];
    _title.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:_title];
    [_title release];
    
    _indexdetil = [[UILabel alloc] initWithFrame:CGRectMake(_title.frame.origin.x, _title.frame.origin.y + _title.frame.size.height + 3, _title.frame.size.width, 15)];
    _indexdetil.font = [UIFont systemFontOfSize:12];
    _indexdetil.textColor = myColor_dark;
    [self.contentView addSubview: _indexdetil];
    [_indexdetil release];
    
    _time = [[UILabel alloc] initWithFrame:CGRectMake(_indexdetil.frame.origin.x, _indexdetil.frame.origin.y + _indexdetil.frame.size.height + 3, 150,10)];
    _time.font = [UIFont systemFontOfSize:8];
    _time.textColor = myColor_dark;
    [self.contentView addSubview: _time];
    [_time release];
    
    _type = [[UILabel alloc] initWithFrame:CGRectMake(_time.frame.origin.x + _time.frame.size.width + 60, _time.frame.origin.y, 30, 10)];
    _type.font = [UIFont boldSystemFontOfSize:8];
    _type.textAlignment = NSTextAlignmentCenter;
    _type.textColor = [UIColor whiteColor];
    [self.contentView addSubview: _type];
    [_type release];
    
    _replycount = [[UILabel alloc] initWithFrame:CGRectMake(_type.frame.origin.x + _type.frame.size.width , _type.frame.origin.y, 50, 10)];
    _replycount.font = [UIFont systemFontOfSize:8];
    _replycount.textAlignment = NSTextAlignmentRight;
    _replycount.textColor = myColor_dark;
    [self.contentView addSubview: _replycount];
    [_replycount release];

}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
